<template>
  <div>
    <mt-button type="primary" @click="test">测试mint-ui</mt-button>
  </div>
</template>

<script>
  import { MessageBox, Toast } from 'mint-ui'
  export default {
    methods: {
      test() {
        MessageBox.alert('这是测试弹框').then(action => {
          Toast({
            message: '提示',
            position: 'bottom',
            duration: 5000
          })
        });
      }
    }
  }
</script>

<style scoped>
</style>